Modifying the Appearance of the Index in Dynamic HTML
ePublisher stores CSS settings that control the appearance of index entries in the
webworks.css file. You can create an override file to modify these settings for specific index entry levels. For example, you can define a different font size and margin for each level in the index.To modify the appearance of the index
- In your Stationery design project, on the View menu, click Project Directory. For more information about override files and locations, see Stationery, Projects, and Overrides.
- If you want to override the CSS settings for all Dynamic HTML targets in the project, create the
Formats\Dynamic HTML\Pages\cssfolder in your project folder. - If you want to override the CSS settings for a specific target, create the
Targets\targetname\Pages\cssfolder in your project folder, where targetname is the name of the target you want to override. - Copy the
webworks.cssfile from the following folder to the override folder you created within your project folder:Program Files\WebWorks\ePublisher Designer\Formats\Dynamic HTML\Pages\css - Open the
webworks.cssfile you copied to your project override folder. - Find the code for
div.WebWorks\_Index\_Level<x>, where x is the level number you want to modify. Then, specify the values within the braces to modify the font or margin:- To modify the font of all index entries for the specified level, specify the name of the font you want, such as
font-family: Arial;. - To modify the font size of all index entries for the specified level, specify the size of the font you want, such as
font-size: 14pt;. - To modify the left margin indent of all index entries for the specified level, specify the indent you want, such as
margin-left: 10px;.
- Save the
webworks.cssfile. - Regenerate your project to review the changes.
For example, the following figure illustrates how you could customize your index entries.
div.WebWorks_Index_Level1
{ font-size: 14pt;
font-family: Arial;
margin-left: 12px;
}
div.WebWorks_Index_Level2
{ font-size: 12pt;
font-family: Arial;
margin-left: 24px;
}Last modified date: 01/14/2026